<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h3>演示Freemarker</h3>
name:${name!''}<br>
age:${age}<br>
sex:${sex}<br>
<hr>
<h3>三木运算符演示</h3>
sex:${(sex == 1)?string('男','女')}

<hr>
<h3>演示遍历集合</h3>
<#list userList as user>
        index: ${user_index}<br>
        id: ${user.id} <br>
        name:${user.username}<br>
    ---------------------------------------<br>
</#list>
</body>
</html>